
#import "ContentViewController.h"

@interface ContentViewController ()
{
    
}
@end

@implementation ContentViewController

- (void)setTv:(UITextView *)tv{
    
    tv = self.tv;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
   
       _tv = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    _tv.text = _text;
    _tv.font = [_tv.font fontWithSize:24.0];
    _tv.editable = NO;
    _tv.scrollEnabled = NO;
    _tv.selectable = NO;
    
    [self.view addSubview:[UIView new]];
    [self.view addSubview:_tv];
    
    if ([GlobalData sharedInstance].currentTag == 0) {
//        for (UIView *tmpView in self.view.subviews) {
//            if ([tmpView isKindOfClass:[UITextView class]]) {
//                UITextView *textV = (UITextView *)tmpView;
//                 textV.backgroundColor =[UIColor blackColor];
//                 textV.textColor = [UIColor whiteColor];
//            }
//        }
        
        self.tv.backgroundColor =[UIColor blackColor];
        self.tv.textColor = [UIColor whiteColor];
    }else {
//        for (UIView *tmpView in self.view.subviews) {
//            if ([tmpView isKindOfClass:[UITextView class]]) {
//                UITextView *textV = (UITextView *)tmpView;
//                textV.backgroundColor =[UIColor whiteColor];
//                textV.textColor = [UIColor blackColor];
//            }
//        }
        self.tv.backgroundColor =[UIColor whiteColor];
        self.tv.textColor = [UIColor blackColor];
    }

    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
